var r,
  t,
  e,
  v,
  n = require("../@babel/runtime/helpers/classCallCheck"),
  i = require("../@babel/runtime/helpers/createClass");
function u(r, t) {
  var e = a();
  return (u = function (t, v) {
    var n = e[(t -= 169)];
    if (void 0 === u.qhUnoY) {
      var i = function (r) {
        for (
          var t, e, v = "", n = "", i = 0, u = 0;
          (e = r.charAt(u++));
          ~e && ((t = i % 4 ? 64 * t + e : e), i++ % 4)
            ? (v += String.fromCharCode(255 & (t >> ((-2 * i) & 6))))
            : 0
        )
          e =
            "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(
              e,
            );
        for (var a = 0, f = v.length; a < f; a++)
          n += "%" + ("00" + v.charCodeAt(a).toString(16)).slice(-2);
        return decodeURIComponent(n);
      };
      (u.OOKsVw = i), (r = arguments), (u.qhUnoY = !0);
    }
    var a = e[0],
      f = t + a,
      c = r[f];
    return c ? (n = c) : ((n = u.OOKsVw(n)), (r[f] = n)), n;
  })(r, t);
}
function a() {
  var r = [
    "z2v0vw5PzM9YBuXVy2f0Aw9U",
    "tufyx1zfuLrfwf9vtKLgt1jnx1zfq1rpuLm",
    "CMvZ",
    "AM9PBG",
    "zhjHDW",
    "ntyWnZm3ogXADeHtEa",
    "D3jHCfbYB21PC2u",
    "yw50AwfSAwfZ",
    "y3jLyxrLq2fUDMfZq29UDgv4Da",
    "2yhzGTI3inUm2QKG2klySTMf2kFBJnI0lcdWN42hipcFJzeG8j+nKIdWN42tipcFPz0",
    "D2vIz2WGywXWAgeGyML0CZO",
    "tufyx1zfuLrfwf9urvHuvvjfx0LnquDfx1vosvrt",
    "ne1jrerNtW",
    "mtaXodmYnMPcvu92ua",
    "BM9Kzq",
    "B2zMC2v0vw5PzM9YBq",
    "rKXpqvq",
    "y3jLyxrLu2vSzwn0B3jrDwvYEq",
    "B2j0ywLUq29UBMvJDgvKv2LMAq",
    "zMLSBfrLEhq",
    "4lA04lA74lEt4lAA4lEk4lEc4lAR4lA64lAA4lEkioc2Toc2Uoc2Q+c3KIWG8j+qKIdWN6AnipcFPQCG8j+MPsdWN6AyipcFKkG",
    "B2j0ywLUq2f2yw5gzwf0DxjL",
    "zgf0ytO",
    "0jFsR9cZ0y3rJDgainc7ingc0yprGngi0lJqU9gclcdWN46dipcFJOeG8j+oGIdWN46iipcFJOKG8j+oIG",
    "B2j0ywLUv2vIr0Xgzwf0DxjL",
    "z2v0q29UDgv4Def0DhjPyNv0zxm",
    "ipcFPkaG8j+KOsdWN6sripcFPjmG8j+KLG",
    "Dgv4DejHC2vSAw5L",
    "q09mt1jFqLvgrKvsx0jjva",
    "tufyx0zsquDnru5ux1vosuzpuK1FvKvdve9suW",
    "C3rYAw5NAwz5",
    "y3jLyxrLuhjVz3jHBq",
    "zhjHD0fYCMf5CW",
    "tufyx0nvqKvFtufqx1rfwfrvuKvFu0LArq",
    "y29Uy2f0",
    "DMvYDgv4qxr0CMLIug9PBNrLCG",
    "y2fUDMfZr2v0sw1Hz2veyxrH",
    "y2fSBa",
    "yxbWBhK",
    "BgvUz3rO",
    "D2vIz2WGBwf4ignVBwjPBMvKihrLEhr1CMuGAw1Hz2uGDw5PDhm6",
    "B2j0ywLUrMvHDhvYzq",
    "zxHWB3j0CW",
    "zM9UDfnPEMu",
    "4kIS4kMX4kI4iocOH+cPSEcOLsdGQkRGQy3GQldGQydGQjBGQl/GQiySipcFKQOG8j+xSIdWN5sLipcFKQeG8j+sQq",
    "mZy2zLbACvvr",
    "z2v0qMvHy29UCW",
    "qKXvrv9csvrt",
    "C2XPy2u",
    "D2vIz2WGBwf4ihzHCNLPBMCGDMvJDg9YCZO",
    "z2v0q29UBMvJDgvKv2LMAq",
    "ndi3nZaYngDMuMXZta",
    "vKvore9s",
    "2kJySYdyP9Um2QKG2kFzHDIQ2k3yP9MglcdWN6sMipcFPlCG8j+zHsdWN5Mg",
    "z2v0u0rlsw5MBW",
    "zxjYB3i",
    "B2j0ywLUvxnLCKLUzM8",
    "u0HbreLor19mqu5hvufhrv9wrvjtsu9o",
    "Dg9eyxrHvvjm",
    "B2j0ywLUqMvHy29UCW",
    "vfjjqu5htevFu1rssva",
    "mwf6v0DMza",
    "BgLUA1bYB2DYyw0",
    "mtbYyKvLCMy",
    "8j+yHYdWN5IilIdWN5IpipcFPkmG8j+KQsdWN6sQipcFPBmU",
    "C29YDa",
    "vKvsu0LptG",
    "CMv0",
    "zw5HyMXLvMvYDgv4qxr0CMLIqxjYyxK",
    "z2v0rgv2AwnLsw5MBW",
    "D2vIz2WGBwf4ign1yMuGBwfWihrLEhr1CMuGC2L6ztO",
    "AxrLBvnPEMu",
    "ig9IDgfPBIb0Aw1LB3v0",
    "qvjsqvLFqLvgrKvs",
    "5lUf5lUf5PIV5lIa5lIQ5Rwl6k+vlcdWN4YJipcFJj4G4PUfipcFJkqG8j+mPsdIM7e",
    "Dw5PzM9YBtjM",
    "rLjbr01ftLrFu0Hbrevs",
    "yxr0ywnOu2HHzgvY",
    "B2j0ywLUu3LZDgvTsw5MBW",
    "sxqNCYbQDxn0igeGDgvZDcWG8j+pHIdWN4+fipcFPyCG8j+LIcdWN6wj",
    "ywXWAgfIzxrPyW",
    "BNvTsxrLBxm",
    "mtyYmta2DLbSv29p",
    "y3jLyxrLu2HHzgvY",
    "y2fUDMfZ",
    "Aw5PDa",
    "tufyx1jftKrfuKjvrKzfuL9tsvPf",
    "mJe5ntCYnxHqBu5mrG",
    "mZKXodq5n2fQEgrkrW",
    "tufyx1rfwfrvuKvFu0LArq",
    "u1rftKnjtf9csvrt",
    "vMv0W6TTig5QW6SGChjVDSoRlcdWN5IfipcFMiyG8j+yII4G8j+yJIa",
    "DxnLuhjVz3jHBq",
    "z2v0u3vWCg9YDgvKrxH0zw5ZAw9UCW",
    "tufyx1zfuLrfwf9bvfrssujt",
    "vKvsvevyx1niqurfuG",
    "Bg9JywXLq29TCgfYzq",
    "yMLUzej1zMzLCG",
    "z2v0qxr0CMLItg9JyxrPB24",
    "C2HHzgvYu291CMnL",
    "DhvYAw5Nq29Yzq",
    "tufyx0nptujjtKvex1rfwfrvuKvFsu1br0vFvu5jvfm",
    "uKvorevsrvi",
    "ChvZAa",
    "zMLSBfn0EwXL",
    "odq4ndi0vw5Yy2zW",
    "tufyx1rfwfrvuKvFsu1br0vFvu5jvfm",
    "i3r1CMLUzY1Yzw5KzxiTD2vIz2W",
    "6RE464oLio2fJoYkPo2kUcWG8j+tUIdWN5o7ipcFK74G8j+tOsdWN5IbipcFMiaG8j+yGI4",
    "D2vIz2WGC3rLBMnPBcbIAxrZoG",
    "D2vIz2WGBwf4ihrLEhr1CMuGAw1Hz2uGDw5PDhm6",
    "B2j0ywLUrMLUz2vYuhjPBNrgzwf0DxjL",
    "EwvZ",
    "D2vIz2WGBwf4ihjLBMrLCIbIDwzMzxiGC2L6ztO",
    "y29TCgLSzvnOywrLCG",
    "D2vIz2WGDMvUzg9YoG",
    "DMvYDgv4ug9Zqxr0CMLI",
    "zM9UDa",
    "z2v0vgLJA2v0",
    "z2v0ugfYyw1LDgvY",
    "D2vIz2WGyMX1zsbIAxrZoG",
    "8j+zIYdWN5MmipcFMy0G8j+zJIdWN5MhipcFMy8",
    "8j+qNIdWN5cCipcFLBCG8j+vUcdWN6AcipcFPPCG8j+MNYa",
    "D2vIz2W",
    "D2vIz2WGBwf4ihzLCNrLEcb0zxH0DxjLigLTywDLihvUAxrZoG",
    "uKvex0jjvfm",
    "tufyx1zbuLLjtKDFvKvdve9suW",
    "D2vIz2WGBwf4ihzLCNrLEcb1BMLMB3jTihzLy3rVCNm6",
    "D2vIz2WGCMvUzgvYzxi6",
    "ChjLy2LZAw9Uig1LzgL1BxaGzMXVyxq7DMfYEwLUzYb2zwmYihzHCNLPBLrLEenVB3jKAw5HDgu7DM9PzcbTywLUkcKGE2DSx0zYywDdB2XVCJ12zwm0khzHCNLPBLrLEenVB3jKAw5HDguSmcWXktT9",
    "DhvYAw5NlwnHBNzHCW",
  ];
  return (a = function () {
    return r;
  })();
}
(function (r, t) {
  for (var e = u, v = a(); ; )
    try {
      if (
        823985 ===
        (parseInt(e(242)) / 1) * (-parseInt(e(194)) / 2) +
          parseInt(e(286)) / 3 +
          (parseInt(e(193)) / 4) * (parseInt(e(268)) / 5) +
          (parseInt(e(226)) / 6) * (parseInt(e(263)) / 7) +
          -parseInt(e(232)) / 8 +
          -parseInt(e(186)) / 9 +
          (-parseInt(e(244)) / 10) * (-parseInt(e(269)) / 11)
      )
        break;
      v.push(v.shift());
    } catch (r) {
      v.push(v.shift());
    }
})(),
  (r = u),
  (t = {
    "./miniprogram/module/turingSDK.js": function (r) {
      var t = u,
        e = requirePlugin(t(281)),
        v = t(180),
        a = (function (r, e, a, f, c, s, o, y) {
          return i(
            function r() {
              n(this, r);
            },
            [
              {
                key: "obtainCavanFeature",
                value: function (r, e) {
                  var n = t;
                  try {
                    var i = wx[n(189)](v);
                    i.bu,
                      (i[n(224)] = 10),
                      (i[n(208)] = n(261)),
                      (i[n(285)] = "#069"),
                      (i[n(298)] = "11px sans-serif");
                    for (
                      var u = [
                          n(260),
                          "ただのテスト, 🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘",
                          n(255),
                          n(289),
                          n(207),
                          n(272),
                          n(245),
                          n(234),
                          n(171),
                          "แค่ทดสอบ, 👂 👃 👄 🗢 👅 🦷",
                          n(225),
                          n(190),
                          n(201),
                          n(204),
                          n(172),
                        ],
                        a = 0;
                      a < u[n(220)];
                      a++
                    )
                      i[n(200)](u[a], 5, 13.3333 * (a + 1));
                    i[n(185)](!1, function () {
                      var t = n;
                      wx[t(217)]({
                        canvasId: v,
                        x: 0,
                        y: 0,
                        width: 300,
                        height: 300,
                        success: r,
                        fail: function (r) {
                          var v = { ret: -1008 };
                          (v[t(183)] = r.errMsg), e(v);
                        },
                      });
                    });
                  } catch (r) {
                    var f = {};
                    (f[n(248)] = -1006), (f[n(183)] = r), e(f);
                  }
                },
              },
              {
                key: r,
                value: function (r, e) {
                  var v = t;
                  wx[v(198)]()
                    .select(v(288))
                    [v(195)]()
                    .exec(function (t) {
                      var n = v;
                      try {
                        var i = { alpha: !1, preserveDrawingBuffer: !0 },
                          u = t[0][n(195)].getContext(n(173), i),
                          a = "",
                          f = u.createBuffer();
                        u[n(278)](u[n(254)], f);
                        var c = new Float32Array([
                          -0.2, -0.9, 0, 0.4, -0.26, 0, 0, 0.732134444, 0,
                        ]);
                        u.bufferData(u.ARRAY_BUFFER, c, u.STATIC_DRAW),
                          (f[n(252)] = 3),
                          (f.numItems = 3);
                        var s = u[n(212)](),
                          o = u.createShader(u[n(276)]);
                        u[n(280)](
                          o,
                          "attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",
                        ),
                          u[n(295)](o);
                        var y = u[n(264)](u[n(257)]);
                        u[n(280)](y, n(179)),
                          u[n(295)](y),
                          u[n(258)](s, o),
                          u.attachShader(s, y),
                          u[n(243)](s),
                          u[n(273)](s),
                          (s[n(297)] = u[n(279)](s, "attrVertex")),
                          (s[n(196)] = u[n(181)](s, "uniformOffset")),
                          u[n(249)](s[n(297)]),
                          u[n(216)](
                            s.vertexPosAttrib,
                            f[n(252)],
                            u[n(197)],
                            !1,
                            0,
                            0,
                          ),
                          u[n(256)](s[n(196)], 1, 1),
                          u.clearColor(0, 0, 0, 0),
                          u.clear(u[n(209)]),
                          u[n(213)](u[n(241)], 0, f[n(262)]);
                        var L = [],
                          z = (u[n(274)]() || [])[n(246)](function (r, t) {
                            return r[n(277)](t);
                          });
                        u[n(265)].toDataURL &&
                          L[n(284)](n(203) + u[n(265)][n(239)]()),
                          L[n(284)]("extensions" + z[n(184)](";")),
                          L.push(n(191) + u[n(169)](u.ALPHA_BITS)),
                          L[n(284)]((u[n(206)]()[n(188)], n(293))),
                          L[n(284)](n(170) + u[n(169)](u[n(228)])),
                          L[n(284)](
                            "webgl depth bits:" + u[n(169)](u.DEPTH_BITS),
                          ),
                          L[n(284)](
                            "webgl green bits:" + u[n(169)](u.GREEN_BITS),
                          ),
                          L[n(284)](n(221) + u[n(169)](u[n(282)])),
                          L[n(284)](n(251) + u[n(169)](u[n(214)])),
                          L.push(
                            "webgl max fragment uniform vectors:" +
                              u.getParameter(u[n(210)]),
                          ),
                          L[n(284)](n(294) + u.getParameter(u[n(267)])),
                          L[n(284)](n(291) + u[n(169)](u[n(287)])),
                          L[n(284)](
                            "webgl max texture size:" + u[n(169)](u[n(270)]),
                          ),
                          L.push(n(230) + u[n(169)](u[n(176)])),
                          L[n(284)](
                            "webgl max vertex attribs:" +
                              u.getParameter(u[n(275)]),
                          ),
                          L[n(284)](n(174) + u[n(169)](u[n(192)])),
                          L.push(n(177) + u[n(169)](u[n(182)])),
                          L[n(284)]("webgl red bits:" + u[n(169)](u[n(175)])),
                          L[n(284)](n(178), u[n(169)](u[n(283)])),
                          L[n(284)](
                            "webgl shading language version:" +
                              u[n(169)](u[n(238)]),
                          ),
                          L.push(n(290) + u.getParameter(u[n(271)])),
                          L[n(284)](n(296) + u[n(169)](u[n(233)])),
                          L[n(284)]("webgl version:" + u[n(169)](u[n(247)]));
                        var w = JSON[n(211)](L);
                        r((a += w));
                      } catch (r) {
                        var g = {};
                        (g[n(248)] = -1007), (g.res = r), e(g);
                      }
                    });
                },
              },
              {
                key: e,
                value: function (r, t) {
                  r();
                },
              },
              {
                key: a,
                value: function (r, t) {
                  wx.getUserInfo({
                    success: function (t) {
                      r(t);
                    },
                    fail: function (t) {
                      r();
                    },
                  });
                },
              },
              {
                key: f,
                value: function (r, t) {
                  wx.getSystemInfo({
                    success: r,
                    fail: function () {
                      r({});
                    },
                  });
                },
              },
              {
                key: c,
                value: function (r, e) {
                  wx[t(227)]({
                    success: r,
                    fail: function () {
                      r();
                    },
                  });
                },
              },
              {
                key: s,
                value: function (r, t) {
                  wx.startWifi({
                    success: function (t) {
                      wx[u(231)]({
                        success: r,
                        fail: function (t) {
                          r();
                        },
                      });
                    },
                    fail: function (t) {
                      r();
                    },
                  });
                },
              },
              {
                key: o,
                value: function () {
                  var r = t,
                    e = arguments[0],
                    v = arguments[1],
                    n = [][r(229)][r(218)](arguments, 1, arguments.length);
                  return new Promise(function (t, i) {
                    var a = r;
                    try {
                      var f = setTimeout(function () {
                        var r = u,
                          v = {};
                        (v[r(248)] = -1007),
                          (v[r(183)] = e + r(253)),
                          (f = null),
                          t(v);
                      }, 5e3);
                      v[a(219)](
                        this,
                        [
                          function (r) {
                            var e = { ret: 0 };
                            (e[a(183)] = r), f && (clearTimeout(f), t(e));
                          },
                          function (r) {
                            var e = a,
                              v = {};
                            (v.ret = r.ret), (v.res = r[e(183)]), t(v);
                          },
                        ][a(215)](n),
                      );
                    } catch (r) {
                      var c = {};
                      (c[a(248)] = -1005), (c[a(183)] = r), t(c);
                    }
                  });
                },
              },
              {
                key: y,
                value: function (r) {
                  var e = t;
                  try {
                    Promise.all([
                      this.wrapPromise(1, this[e(259)]),
                      this[e(187)](2, this[e(199)]),
                      this[e(187)](3, this.obtainBeacons),
                      this[e(187)](4, this[e(202)]),
                      this[e(187)](5, this.obtainWebGLFeature),
                      this[e(187)](6, this[e(292)]),
                      this[e(187)](7, this[e(237)]),
                    ])
                      .then(function (t) {
                        r(t);
                      })
                      .catch(function (r) {});
                  } catch (t) {
                    var v = {};
                    (v[e(248)] = -1004), (v[e(236)] = t), r([v]);
                  }
                },
              },
            ],
          );
        })(t(205), t(292), t(237), t(259), t(240), t(199), t(187), t(222));
      r[t(223)] = {
        init: function (r, v) {
          var n = t;
          try {
            var i = new a();
            e[n(266)](
              {
                obtainFeature: function (r, t) {
                  i.obtainFeature(r, t);
                },
              },
              r,
              v,
            );
          } catch (r) {}
        },
        getTicket: function (r) {
          var v = t;
          try {
            e[v(299)](r);
          } catch (r) {}
        },
        getDeviceToken: function (r) {
          try {
            e.getDeviceToken(r);
          } catch (r) {}
        },
        getDeviceTokenV2: function (r) {
          var t =
            !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
          try {
            e.getDeviceTokenV2(r, t);
          } catch (r) {}
        },
        getSDKInfo: function () {
          return e[t(235)]();
        },
        getDeviceInfo: function () {
          return e[t(250)]();
        },
      };
    },
  }),
  (e = {}),
  (v = (function r(v) {
    var n = u,
      i = e[v];
    if (void 0 !== i) return i[n(223)];
    var a = {};
    a[n(223)] = {};
    var f = (e[v] = a);
    return t[v](f, f[n(223)], r), f[n(223)];
  })("./miniprogram/module/turingSDK.js")),
  (module[r(223)] = v);
